Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Apple Silicon and Linux Arm64 targets #140

Merged
merged 14 commits into from
Jul 28, 2023

Conversation

Lohann
Copy link
Collaborator

@Lohann Lohann commented Jul 20, 2023

Description

This PR does similar changes as this one https://github.com/Analog-Labs/testnet/pull/272, but also add some metadata to Dockerfiles and removes the requirement of creating the .cargo/config file, now all required parameters are defined by the script.

Type of change

  • New feature (non-breaking change which adds functionality)

Tests

For reproduce the issue you need an arm64 device, examples:

Code review prechecks:

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Inline comments have been added for each method
  • I have made corresponding changes to the documentation
  • Code changes introduces no new problems or warnings
  • Test cases have been added
  • Dependent changes have been merged and published in downstream modules

@Lohann Lohann self-assigned this Jul 20, 2023
@Lohann Lohann mentioned this pull request Jul 27, 2023
7 tasks
@Lohann Lohann marked this pull request as draft July 27, 2023 23:33
@Lohann Lohann changed the title Support Apple Silicon and Linux Arm64 targets WIP - Support Apple Silicon and Linux Arm64 targets Jul 27, 2023
@Lohann
Copy link
Collaborator Author

Lohann commented Jul 27, 2023

DO NOT MERGE! I'm debugging why docker containers doesn't starts

@Lohann
Copy link
Collaborator Author

Lohann commented Jul 28, 2023

That's really odd.. building the connector using the target only works:

cargo build -p rosetta-server-ethereum --release --target x86_64-unknown-linux-musl

Whoever when I specify the linker, it generates an invalid binary on CI... why

cargo build -p rosetta-server-ethereum \
  --release \
  --target x86_64-unknown-linux-musl \
  --config "target.x86_64-unknown-linux-musl.linker='x86_64-linux-musl-gcc'" \
  --config "env.CC_x86_64-unknown-linux-musl='x86_64-linux-musl-gcc'"

@Lohann
Copy link
Collaborator Author

Lohann commented Jul 28, 2023

Finally...

@Lohann Lohann marked this pull request as ready for review July 28, 2023 05:50
@Lohann Lohann changed the title WIP - Support Apple Silicon and Linux Arm64 targets Support Apple Silicon and Linux Arm64 targets Jul 28, 2023
@Lohann Lohann merged commit 617bf55 into master Jul 28, 2023
4 checks passed
@dvc94ch dvc94ch deleted the feature/improve-docker-build-script branch September 7, 2023 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants